﻿<UserControl x:Class="WTwitter.View.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:app="clr-namespace:WTwitter"
	xmlns:util="clr-namespace:WTwitter.ViewModel.Utility">
	<StackPanel>
		<GroupBox Header="バージョン情報" Margin="3" Padding="3">
			<StackPanel>
				<StackPanel Orientation="Horizontal">
					<TextBlock Text="{x:Static app:AppInfo.AppName}" FontWeight="Bold" />
					<TextBlock> Version </TextBlock>
					<TextBlock Text="{x:Static app:AppInfo.Version}"/>
				</StackPanel>
				<TextBlock>
					<Run>URL: </Run>
					<Hyperlink Command="{x:Static util:CommonCommands.OpenByBrowser}"
							   CommandParameter="{x:Static app:AppInfo.Url}">
						<TextBlock Text="{x:Static app:AppInfo.Url}"/>
					</Hyperlink>
				</TextBlock>
			</StackPanel>
		</GroupBox>
		<GroupBox Header="このアプリケーションで利用しているライブラリ" Margin="3" Padding="3">
			<ItemsControl ItemsSource="{x:Static app:AppInfo.RefLibs}">
				<ItemsControl.ItemTemplate>
					<DataTemplate>
						<StackPanel Margin="3">
							<TextBlock Text="{Binding Path=UseFor}"/>
							<StackPanel Margin="10,0,0,0">
								<TextBlock Text="{Binding Path=Name}" FontWeight="Bold"/>
								<TextBlock>
									<Hyperlink Command="{x:Static util:CommonCommands.OpenByBrowser}"
											   CommandParameter="{Binding Path=Url}">
										<TextBlock Text="{Binding Path=Url}"/>
									</Hyperlink>
								</TextBlock>
							</StackPanel>
						</StackPanel>
					</DataTemplate>
				</ItemsControl.ItemTemplate>
			</ItemsControl>
		</GroupBox>
	</StackPanel>
</UserControl>
